import axios  from "../utils/request";
export const $list=async ()=>{
    let {data}=await axios.get('api/RoomType/List');
    return data;
}
export const $getOne=async (params)=>{
    let {data}=await axios.post('api/RoomType/GetOne',params);
    return data;
}
export const $add=async (params)=>{
    let {data}=await axios.post('api/RoomType/Add',params);
    return data;
}
export const $update=async (params)=>{
    let {data}=await axios.post('api/RoomType/Update',params);
    return data;
}
export const $del=async (params)=>{
    let {data}=await axios.post('api/RoomType/Delete',params);
    return data;
}
export const $totalPrice=async ()=>{
    let {data}=await axios.get('api/RoomType/TotalTypePrice');
    return data;
}
